package com.qyhl.webtv.module_microvideo.shortvideo.classic.news;

import com.qyhl.webtv.commonlib.entity.news.NewsBean;

import java.util.List;

public class ClassicHomeNewsPresenter implements ClassicHomeNewsContract.ClassicHomeNewsPresenter {
    private ClassicHomeNewsModel mModel;
    private ClassicHomeNewsContract.ClassicHomeNewsView mView;

    public ClassicHomeNewsPresenter(ClassicHomeNewsContract.ClassicHomeNewsView mView) {
        this.mView = mView;
        this.mModel = new ClassicHomeNewsModel(this);
    }

    @Override
    public void getData(String sectionId,String newsId) {
        mModel.getData(sectionId,newsId);
    }

    @Override
    public void setData(List<NewsBean> beanList,boolean isMore) {
        mView.setData(beanList,isMore);
    }

    @Override
    public void setError(String msg,boolean isMore) {
        mView.setError(msg,isMore);
    }
}
